<?php
require_once '../funciones/funciones.php';
$con = new MySQL;
$mostrar = "";
if (isset($_GET["opc"])) {
    $sql = "select temaIntroduccionPagina from temas where temaId='{$_GET["temaId"]}'";
    $result = $con->consulta($sql);
    $mostrar = $con->unaFila($result);
    $mostrar = $mostrar["temaIntroduccionPagina"];
    $titulo = $_GET["tema"];
} else {
    $sql = "select tempText1 from temporal where transaccion = '{$_REQUEST["transaccion"]}'";
    $result = $con->consulta($sql);
    $temporal = $con->unaFila($result);
    $mostrar = $temporal["tempText1"];
    $titulo = "PREVISULIACIÓN";
}
?>
<!DOCTYPE html>
<html>
    <head>
        <?php require_once '../includes/head.html' ?>
        <title>Ejemplo</title>
    <script type="text/javascript">
        $(document).ready(function(){
            maximizar();
        });
        function maximizar(){
            window.moveTo(0,0);
            window.resizeTo(screen.width,screen.height);
        }

    </script>
    </head>
    <body>
        <div class="ui-accordion-header ui-state-default ui-corner-all titulo" id="divPruebaTapion"><?php echo $titulo; ?></div>
        <?php echo $mostrar ?>
    </body>
</html>
